﻿using System;
using NetFrame.Base;
using NetFrame.Extend;
using MySql.Data.MySqlClient;
using NetFrame.Tool;
using NLog;
using NetFrame.EnDecode;

namespace TestServer
{
    class Program
    {
        static void Main(string[] args)
        {
            BaseServer server = new BaseServer(6666);
            server.Init(new MessageHandler(), new PtoCoding());
            server.Start();
            Console.WriteLine(AppSetting.GetValue("test"));


            Logger log = LogManager.GetCurrentClassLogger();

            log.Trace("fuck you");

            DbHelperMySQL.connectionString = "server=127.0.0.1;database=mysql;uid=root;pwd=qw789456123";

            DataResult dr = DbHelperMySQL.Query("select * from user");

            Console.WriteLine(dr.rows);

            while (true) { }
        }
    }
}
